How to calculate aggregate for Entry test